package com.cloud.freeflow.api.entity;

import javax.persistence.*;

@Table(name = "proc_part")
public class ProcPart {
	@Id
	@Column(name = "proc_def_id")
	private Long procDefId;

	@Id
	@Column(name = "part_id")
	private Long partId;

	@Column(name = "part_type")
	private String partType;

	@Column(name = "part_name")
	private String partName;

	@Column(name = "human_id")
	private Long humanId;

	@Column(name = "human_name")
	private String humanName;

	@Column(name = "role_id")
	private Long roleId;

	@Column(name = "role_name")
	private String roleName;

	@Column(name = "unit_id")
	private Long unitId;

	@Column(name = "unit_name")
	private String unitName;

	@Column(name = "unit_code")
	private String unitCode;

	@Transient
	private long relationId;

	public Long getProcDefId() {
		return procDefId;
	}

	public void setProcDefId(Long procDefId) {
		this.procDefId = procDefId;
	}

	public Long getPartId() {
		return partId;
	}

	public void setPartId(Long partId) {
		this.partId = partId;
	}

	public String getPartName() {
		return partName;
	}

	public void setPartName(String partName) {
		this.partName = partName;
	}

	public Long getHumanId() {
		return humanId;
	}

	public void setHumanId(Long humanId) {
		this.humanId = humanId;
	}

	public String getHumanName() {
		return humanName;
	}

	public void setHumanName(String humanName) {
		this.humanName = humanName;
	}

	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public Long getUnitId() {
		return unitId;
	}

	public void setUnitId(Long unitId) {
		this.unitId = unitId;
	}

	public String getUnitName() {
		return unitName;
	}

	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}

	public String getUnitCode() {
		return unitCode;
	}

	public void setUnitCode(String unitCode) {
		this.unitCode = unitCode;
	}

	public String getPartType() {
		return partType;
	}

	public void setPartType(String partType) {
		this.partType = partType;
	}

	public long getRelationId() {
		return relationId;
	}

	public void setRelationId(long relationId) {
		this.relationId = relationId;
	}

}